package cn.hs.ph.entity;

import com.alibaba.fastjson.annotation.JSONField;

import java.util.Date;

public class Commodity {
          private int goodsId;
          private String goodsName;
          private double goodsPresentPrice;
          private int goodsSalesVolume;
          private String goodsImage;
          @JSONField(format = "yyyy-MM-dd")
          private Date addTime;
          private int goodsStatus;
          private int shopId;
          private String goodsShopName;
          private int goodsCartCount;
          private int shopCategoryId;
          private String goodsUnit;

    public Commodity() {
    }

    public Commodity(int goodsId, int goodsStatus) {
        this.goodsId = goodsId;
        this.goodsStatus = goodsStatus;
    }

    public Commodity(int goodsId, String goodsName, double goodsPresentPrice, int goodsSalesVolume, String goodsImage, Date addTime, int goodsStatus, int shopId, String goodsShopName, int goodsCartCount, int shopCategoryId, String goodsUnit) {
        this.goodsId = goodsId;
        this.goodsName = goodsName;
        this.goodsPresentPrice = goodsPresentPrice;
        this.goodsSalesVolume = goodsSalesVolume;
        this.goodsImage = goodsImage;
        this.addTime = addTime;
        this.goodsStatus = goodsStatus;
        this.shopId = shopId;
        this.goodsShopName = goodsShopName;
        this.goodsCartCount = goodsCartCount;
        this.shopCategoryId = shopCategoryId;
        this.goodsUnit = goodsUnit;
    }

    public int getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(int goodsId) {
        this.goodsId = goodsId;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public double getGoodsPresentPrice() {
        return goodsPresentPrice;
    }

    public void setGoodsPresentPrice(double goodsPresentPrice) {
        this.goodsPresentPrice = goodsPresentPrice;
    }

    public String getGoodsImage() {
        return goodsImage;
    }

    public void setGoodsImage(String goodsImage) {
        this.goodsImage = goodsImage;
    }

    public int getGoodsSalesVolume() {
        return goodsSalesVolume;
    }

    public void setGoodsSalesVolume(int goodsSalesVolume) {
        this.goodsSalesVolume = goodsSalesVolume;
    }

    public Date getAddTime() {
        return addTime;
    }

    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }

    public int getGoodsStatus() {
        return goodsStatus;
    }

    public void setGoodsStatus(int goodsStatus) {
        this.goodsStatus = goodsStatus;
    }

    public int getShopId() {
        return shopId;
    }

    public void setShopId(int shopId) {
        this.shopId = shopId;
    }

    public int getGoodsCartCount() {
        return goodsCartCount;
    }

    public void setGoodsCartCount(int goodsCartCount) {
        this.goodsCartCount = goodsCartCount;
    }

    public String getGoodsShopName() {
        return goodsShopName;
    }

    public void setGoodsShopName(String goodsShopName) {
        this.goodsShopName = goodsShopName;
    }

    public int getShopCategoryId() {
        return shopCategoryId;
    }

    public void setShopCategoryId(int shopCategoryId) {
        this.shopCategoryId = shopCategoryId;
    }

    public String getGoodsUnit() {
        return goodsUnit;
    }

    public void setGoodsUnit(String goodsUnit) {
        this.goodsUnit = goodsUnit;
    }
}
